<script setup lang="ts">
import navbar from './nav.vue';
</script>
<template>
   <div class="common-layout">
      <el-container>
         <el-header class="head">
            <navbar></navbar>
         </el-header>
         <el-main class="main">
            <router-view></router-view>
         </el-main>
         <el-footer>Footer</el-footer>
      </el-container>
   </div>
</template>
<style lang="scss" scoped>
.head{
   padding: 0;
}
.main{
   height: 100%;
}
.common-layout{
   height: 100vh;
}
</style>
  